<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>绝地求生</title>
    <link rel="stylesheet" href="./111.css">
</head>

<body>
    <div class="box">
        <div class="top">
            <div class="topp w">
                <div class="img">
                    <img src="./36b301188e6ee5aa7915f3e0787c668f.png" alt="">
                </div>
                <ul class="ul">
                    <li>官网首页</li>
                    <li>绑定查询</li>
                    <li class="orange">国服预约</li>
                    <li class="orange">老兵绑定</li>
                    <li>游戏特色</li>
                    <li>社区APP</li>
                    <li>王吧认证</li>
                </ul>
                <div class="right">
                    <button>进入官网</button>
                </div>
            </div>
        </div>
        <p style="height:80px"></p>
        <div class="content">
            <div class="contentbox">
                <div class="top">
                    <div class="san">
                    </div>
                </div>
                <div class="center">
                    <img src="https://game.gtimg.cn/images/pubg/act/a20171114feature/logo_b.png" alt="">
                </div>
            </div>
            <video class="video" autoplay muted controls loop src="http://mdup.apdcdn.tc.qq.com/vcloud1022.tc.qq.com/1022_5dad5415ceb249339a0bf9662bfd414e.f0.mp4?vkey=D07284E154FBDE7293B0959D4A2EB05B1702306389C52A8AA5A366D74B0715F2DF87C4DFC98A994E7F1E4508258CBFD2EBE73E692E1EAC1B5483107BFD278775567CBD20FA7D4BFAE5627A31688C4B305B2466DA3CCE4F94&sha=0"></video>
        </div>
    </div>
    <div class="san">
        <video class="video" autoplay muted controls loop src="http://mdup.apdcdn.tc.qq.com/vcloud1022.tc.qq.com/1022_e48ffd8a30074766bfae4ba50cbbbce5.f0.mp4?vkey=06BB98F1AA30010AC2D0781BD1C0148B55F6B431FFBCC3FFD81B9DB2E1DCB0A4BC71F7C176E97D6ECDE859E3BEE5E2D3328E2A76D030B5E88EBC8E91AE5E620D0A856D458004EFCAE501F9682E756A9E7F7345866A30E4D9&sha=0"></video>
        <div class="div">
            <h1>写实体验</h1>
            <h2>战术竞技</h2>
            <p>连呼吸都必须小心翼翼,尚所未有的紧张刺激体验</p>
        </div>
    </div>
    <div class="si">
        <video autoplay muted controls loop src="http://mdup.apdcdn.tc.qq.com/vcloud1022.tc.qq.com/1022_18cc6cba2ebb4635aa06d2020134d1be.f0.mp4?vkey=D83D519D6486AB5204FB7A4343EBE0595CFE692358B6B6C85ECB8435904F48679D5531A0F2D71B3A4BF61ACF3B56337D23D40C5B9D0F9D4B43E05C0EE255D2A3433C9E14F7DF35D3C2C7B0AE7FE6F9CB5FFBA42D53E53237&sha=0"></video>
        <div class="div big">
            <h1>大世界</h1>
            <h2>设计体验</h2>
            <p>真实的射击体验,多种枪械与配件,眼观六路耳听八方</p>
            <div class="city">
                <div class="bw"></div>
                <div class="bw bw2"></div>
                <div class="bw bw3"></div>
            </div>
        </div>
        <div class="l">
            <div class="t">

                <p class="move">
                    <span>
                        <img src="./(1).png" alt="">
                    </span>
                </p>
                <p> <img src="./1(2).png" alt="" class="img1"></p>
                <p class="move">
                    <span> <img src="./(1).png" alt=""></span>
                    <span> <img src="./(1).png" alt=""></span>
                    <span> <img src="./(1).png" alt=""></span>
                    <span> <img src="./(1).png" alt=""></span>

                </p>
            </div>
            <div class="b">
                <p class="move">
                    <span>
                        <img src="./(1).png" alt="">
                    </span>
                </p>
                <p> <img src="./1(2).png" alt="" class="img1"></p>
                <p class="move">
                    <span> <img src="./(1).png" alt=""></span>
                    <span> <img src="./(1).png" alt=""></span>
                    <span> <img src="./(1).png" alt=""></span>
                    <span> <img src="./(1).png" alt=""></span>
                </p>
            </div>

        </div>
    </div>
    <div class="wu">
        <div class="div">
            <div class="left zuo">
                <img src="" alt="">
                <p class="p"><span class="span1">天气</span></p>
                <!-- <p>天气将严重影响视野,既潜藏着危险,也能作为你的掩护</p> -->
            </div>
            <div class="right1 you">
                <img src="" alt="">
                <p class="p"><span class="span1">地形</span></p>
                <!-- <p>善于利用不同的地形埋伏和躲避,才能取得胜利</p> -->
            </div>
        </div>
        <h1 class="h1">多种真实天气地形</h1>
        <div class="da zuo1">
            <div class="left_yi aaa"></div>
            <div class="left_er aaa"></div>
            <div class="left_san aaa"></div>
        </div>
        <div class="xiao you1">
            <div class="right_yi aa"></div>
            <div class="right_er aa"></div>
            <div class="right_san aa"></div>
            <div class="right_si aa"></div>
            <div class="right_wu aa"></div>
        </div>
    </div>
    <div class="liu">
        <video autoplay muted controls loop src="http://mdup.apdcdn.tc.qq.com/vcloud1022.tc.qq.com/1022_18cc6cba2ebb4635aa06d2020134d1be.f0.mp4?vkey=D83D519D6486AB5204FB7A4343EBE0595CFE692358B6B6C85ECB8435904F48679D5531A0F2D71B3A4BF61ACF3B56337D23D40C5B9D0F9D4B43E05C0EE255D2A3433C9E14F7DF35D3C2C7B0AE7FE6F9CB5FFBA42D53E53237&sha=0"></video>
        <div class="div">
            <h1>组团开车</h1>
            <h2>团队竞技</h2>
            <p>丰富载具,团队合作,好友开黑</p>
        </div>
    </div>
    <div class="qi">
        <div class="div">
            <div>
                <h1>瞬息万变</h1>
                <h2>策略为王</h2>
            </div>
            <p>时刻变化的随机因素,制定是优策略</p>
        </div>
    </div>
    <div class="ba">
        <div class="left">
            <img src="./微信图片_20211214202947.png" alt="">
        </div>
        <div class="right">
            <p class="p1">
                腾讯互动娱乐 | 服务条款 | 隐私保护指引 | 儿童隐私保护指引 | 腾讯游戏招聘 | 腾讯游戏客服 | 游戏列表 | 广告服务及商务合作
            </p>
            <p class="p1">腾讯公司版权所有 网络游戏行业防沉迷自律公约</p>
            <p class="p1">COPYRIGHT @ 1998-2021 TENCENT ALL RIGHTS RESERVED</p>
            <p class="p1">@ PUBG Corporation All rights reserved</p>
            <p class="p1">工商网电子标识 | 奥网雯[2020]3396-195号 | (署) 网出证 (奥) 字第054号</p>
        </div>
    </div>
</body>

</html>
<script>
    addEventListener("DOMContentLoaded", function() {
        var body = document.body,
            html = document.documentElement;
        var itv, height = document.body.offsetHeight;
        var page = scrollTop() / height | 0;
        //窗口大小改变事件
        addEventListener("resize", onresize), onresize();
        //滚轮事件
        document.body.addEventListener(
            "onwheel" in document ? "wheel" : "mousewheel",
            function(e) {
                clearTimeout(itv);
                itv = setTimeout(function() {
                    var delta = e.wheelDelta / 120 || -e.deltaY / 3;
                    page -= delta;
                    var max = (document.body.scrollHeight / height | 0) - 1;
                    if (page < 0) return page = 0;
                    if (page > max) return page = max;
                    move();
                }, 100);
                // e.preventDefault();
            }
        );
        //平滑滚动
        function move() {
            var value = height * page;
            var diff = scrollTop() - value;
            (function callee() {
                diff = diff / 1.2 | 0;
                scrollTop(value + diff);
                if (diff) itv = setTimeout(callee, 16);
            })();
        };
        //resize事件
        function onresize() {
            height = body.offsetHeight;
            move();
        };
        //获取或设置scrollTop
        function scrollTop(v) {
            if (v == null) return Math.max(body.scrollTop, html.scrollTop);
            else body.scrollTop = html.scrollTop = v;
        };
    });

    function test() {
        var home = Array.from(document.querySelectorAll('.aaa'));
        home.forEach((item, i) => {
            item.onmouseover = function() {
                item.style.width = "65%"
            }
            item.onmouseout = function() {
                item.style.width = "33.33%"
            }
        })
        var aa = Array.from(document.querySelectorAll('.aa'));
        aa.forEach((item, i) => {
            item.onmouseover = function() {
                item.style.width = "40%"
            }
            item.onmouseout = function() {
                item.style.width = "20%"
            }
        })
    }
    test()
    var white = document.querySelector('.city')
    var big = document.querySelector('.big')
    var qiang = document.querySelector('.l')
    console.log(qiang);
    white.onclick = function() {
        big.style.left = 360 + 'px'
        big.style.transition = 'all ' + 2 + "s"
        white.style.display = "none"
        qiang.style.opacity = 1
    }



    var t = 0
    var t1 = 0
    var img = Array.from(document.querySelectorAll('.move span img'))
    var img1 = Array.from(document.querySelectorAll('.img1'))
    console.log(img);
    img.forEach((item) => {
        item.onmouseover = function() {
            var that = this
            var i = 1
            var time = 0
            t = time = setInterval(() => {
                i++
                that.src = './(' + i + ').png'
                if (i == 6) {
                    i = 1
                }
                // './ (+'i+').png'
            }, 500)

        }
        item.onmouseout = function() {

            clearInterval(t);
        }

    })
    img1.forEach((item) => {
        item.onmouseover = function() {
            console.log(2);
            var that = this
            var i1 = 1
            var time = 0
            t1 = time = setInterval(() => {


                i1++
                that.src = './1(' + i1 + ').png'
                if (i1 == 2) {
                    i1 = 1
                }


            }, 500)

        }
        item.onmouseout = function() {

            clearInterval(t1);
        }

    })
    var left = document.querySelector('.zuo')
    var right = document.querySelector('.you')
    var left1 = document.querySelector('.zuo1')
    var right1 = document.querySelector('.you1')
    left.style.background = "orange"

    left.onclick = function() {
        left1.style.opacity = 1
        right1.style.opacity = 0
        left1.style.transition = " all 2s"
        right1.style.transition = " all 2s"
        left.style.background = "#FF8C00"
        right.style.background = ""
    }

    right.onclick = function() {
        right1.style.opacity = 1
        left1.style.opacity = 0
        left1.style.transition = " all 2s"
        right1.style.transition = " all 2s"
        right.style.background = "#FF8C00"
        left.style.background = ""
    }
</script>